using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db.SupplyChain.Warehouse;
using HengTong.Model;


namespace HengTong.ViewModel.SupplyChain.SysWarehouseVms
{
    public partial class SysWarehouseTemplateVm : BaseTemplateVM
    {
        [Display(Name = "仓库名称")]
        public ExcelPropety NameExcel = ExcelPropety.CreateProperty<SysWarehouse>(x => x.Name);
        [Display(Name = "仓库编码")]
        public ExcelPropety CodeExcel = ExcelPropety.CreateProperty<SysWarehouse>(x => x.Code);
        [Display(Name = "ERP编号")]
        public ExcelPropety ErpIdExcel = ExcelPropety.CreateProperty<SysWarehouse>(x => x.ErpId);
        [Display(Name = "描述")]
        public ExcelPropety DescriptionExcel = ExcelPropety.CreateProperty<SysWarehouse>(x => x.Description);
        [Display(Name = "位置")]
        public ExcelPropety LocationExcel = ExcelPropety.CreateProperty<SysWarehouse>(x => x.Location);
        [Display(Name = "是否虚拟仓库")]
        public ExcelPropety IsVirtualExcel = ExcelPropety.CreateProperty<SysWarehouse>(x => x.IsVirtual);
        [Display(Name = "状态")]
        public ExcelPropety CommonStateExcel = ExcelPropety.CreateProperty<SysWarehouse>(x => x.CommonState);

	    protected override void InitVM()
        {
        }

    }

    public class SysWarehouseImportVm : BaseImportVM<SysWarehouseTemplateVm, SysWarehouse>
    {

    }

}
